package decorate;

/**
 * @author wcj
 * @Date 2021/6/21 21:03
 * @Version 1.0
 */
public class ConcreteRedDecorator extends AbstractDecorator {

    public ConcreteRedDecorator(Shape shape) {
        super(shape);
    }

    @Override
    public void draw() {
        shape.draw();
        setColor(shape);
    }

    public void setColor(Shape shape) {
        System.out.println("color:red");
    }
}
